﻿using System.ComponentModel.DataAnnotations;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Web.Models.Vendors;

public partial record VendorInfoModel : BaseNopModel
{
    public VendorInfoModel()
    {
        VendorAttributes = new List<VendorAttributeModel>();
    }

    [NopResourceDisplayName("Account.VendorInfo.Name")]
    public string Name { get; set; }

    [DataType(DataType.EmailAddress)]
    [NopResourceDisplayName("Account.VendorInfo.Email")]
    public string Email { get; set; }

    [NopResourceDisplayName("Account.VendorInfo.Description")]
    public string Description { get; set; }

    [NopResourceDisplayName("Account.VendorInfo.Picture")]
    public string PictureUrl { get; set; }

    public IList<VendorAttributeModel> VendorAttributes { get; set; }
}